// $('.set_tag .right').click(function() {
//   window.location.href = '../html/leixing.html'
// })


window.onload=function() {
  new Rolldate({
    el: '#date-group1-4',
    format: 'YYYY-MM-DD hh:mm',
    beginYear: 2000,
    endYear: 2100
  })
}



// 点击加号，在后方生成组件
const detail = `
<div class="detail_cont">
  <textarea placeholder="请编写商品详情信息..."></textarea>
  <ul>
    <li>
      <img src="/public/img/chong.png" alt="">
    </li>
    <img src="/public/img/add.png" alt="">
    <input type="file" multiple capture='camera' accept='image/*' style="display: none;">
  </ul>
</div>
`
$('.detail .title .add').click(function () {
  $(detail).appendTo('.detail');
})